<?php

class gDoc extends gCoreObject
{
    const TITLE_APPEND = 0;
    const TITLE_SET = 1;
    const TITLE_PREPEND = 2;
    
    protected static $_title = '';
    protected $_scripts = array();
    protected $_styles = array();
    protected $_meta = array();

    public static function setTitle($title,$type = self::TITLE_SET)
    {
        switch( $type )
        {
            case self::TITLE_APPEND:
                self::$title .= $title;
                break;
            case self::TITLE_SET:
                self::$title  = $title;
                break;
            case self::TITLE_PREPEND:
                self::$title  = $title . self::$_title;
                break;
        }
    }

    public function addScript()
    {
        
    }

    public function addStyle()
    {
        
    }

    public function addMeta()
    {
        
    }

    public function validate($html)
    {
        
    }

}